const fs = require('fs')
const path = require('path')

function wl(ws,log){
	ws.write(log+'\n')
}

function ws (fileName){
	const fullName = path.join(__dirname,'../','../','logs',fileName)
	return fs.createWriteStream(fullName,{flags:'a'})
}


function access(log){
	wl(ws('access.log'),log)
}

module.exports = {
	access
}